#!/usr/bin/env bash
cd `dirname $0`

docker rm -f dyup &> /dev/null

docker run -d \
--name=dyup \
-v $PWD/conf:/usr/local/openresty/nginx/conf \
-v $PWD/lua:/usr/local/openresty/nginx/lua \
-v $PWD/logs:/usr/local/openresty/nginx/logs \
-v $PWD/entrypoint.sh:/entrypoint.sh \
-p 7090:8080 \
-p 7080:8081 \
openresty_dyup \
bash "/entrypoint.sh"

# -p 8080:8080 \
# -p 8081:8081 \
